package com.youlai.boot.system.service;

import com.youlai.boot.system.model.entity.Productsingle;
import com.youlai.boot.system.model.form.ProductsingleForm;
import com.youlai.boot.system.model.query.ProductsingleQuery;
import com.youlai.boot.system.model.vo.ProductsingleVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 单品跟进服务类
 *
 * @author xiheforever
 * @since 2025-05-16 23:05
 */
public interface ProductsingleService extends IService<Productsingle> {

    /**
     *单品跟进分页列表
     *
     * @return {@link IPage<ProductsingleVO>} 单品跟进分页列表
     */
    IPage<ProductsingleVO> getProductsinglePage(ProductsingleQuery queryParams);

    /**
     * 获取单品跟进表单数据
     *
     * @param id 单品跟进ID
     * @return 单品跟进表单数据
     */
     ProductsingleForm getProductsingleFormData(Long id);

    /**
     * 新增单品跟进
     *
     * @param formData 单品跟进表单对象
     * @return 是否新增成功
     */
    boolean saveProductsingle(ProductsingleForm formData);

    /**
     * 修改单品跟进
     *
     * @param id   单品跟进ID
     * @param formData 单品跟进表单对象
     * @return 是否修改成功
     */
    boolean updateProductsingle(Long id, ProductsingleForm formData);

    /**
     * 删除单品跟进
     *
     * @param ids 单品跟进ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteProductsingles(String ids);

}
